home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_5.lha
/
8_5
/
FILE.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
369b
|
18 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ create a FILE using the given buffer and mode
ILE::FILE(streambuf *st, open_mode m)
sb = st;
mode = m;
// create the appropriate stream
if (mode == input)
in = new istream(sb);
else
out = new ostream(sb);